#ifndef _TEMPLATE_H
#define _TEMPLATE_H

#define TEMPLATE_DIR ".templ"
#define MAX_TEMPLATE 40
#define MAX_CONTENT 20
#define TMPL_BM_FLAG 0x1
//#define MAX_CONTENT_LENGTH 555 xbw-Amanda change 2011-12-09
#define MAX_CONTENT_LENGTH 2000
#define TMPL_NOW_VERSION 1

struct s_content {
    char text[50];
    int length;
};

struct s_template {
    char title[50];
    char title_prefix[20];
    int content_num;
    char filename[STRLEN];
    int flag;
    int version;
    char unused[16];
    char title_tmpl[STRLEN];
};

struct a_template {
    struct s_template * tmpl;
    struct s_content * cont;
};

#endif
